//
//  GMArtListModel.h
//  gentleman
//
//  Created by 范月成 on 2017/12/5.
//  Copyright © 2017年 fancy. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void (^getListCompleted)(NSError *error, NSMutableArray *list);

@interface GMArtListModel : NSObject <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, assign) BOOL isDownloadList;
@property (nonatomic, assign, readonly) NSInteger page;
@property (nonatomic, strong, readonly) NSMutableArray *listDatas;

//home page
- (void)getHomePageListDatas:(getListCompleted)completed;
- (void)getHomePageListNext:(getListCompleted)completed;

//search
- (void)getSearchListDatasWithKey:(NSString *)key
                        completed:(getListCompleted)completed;
- (void)getSearchListNext:(getListCompleted)completed;

//tag
- (void)getTagListDatas:(NSString *)tag
              completed:(getListCompleted)completed;
- (void)getTagListNext:(getListCompleted)completed;

//category
- (void)getCategoryListDatas:(NSString *)category
                   completed:(getListCompleted)completed;
- (void)getCategoryListNext:(getListCompleted)completed;

//upload
- (void)getUploaderListDatas:(NSString *)uploader
                   completed:(getListCompleted)completed;
- (void)getUploaderListNext:(getListCompleted)completed;

//local
- (void)getLocalLikeListDatas:(getListCompleted)completed;
- (void)getLocalLikeListNext:(getListCompleted)completed;
- (void)getLocalDownloadListDatas:(getListCompleted)completed;
- (void)getLocalDownloadListNext:(getListCompleted)completed;

@end
